varvedb 0.4.2

A high-performance, embedded, append-only event store for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
import { getCollection } from 'astro:content';
import DocsLayout from '../../layouts/DocsLayout.astro';

export async function getStaticPaths() {
  const docsEntries = await getCollection('docs');
  return docsEntries.map(entry => ({
    params: { slug: entry.slug }, props: { entry },
  }));
}

const { entry } = Astro.props;
const { Content } = await entry.render();
---

<DocsLayout title={entry.data.title || entry.slug.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase())}>
  <Content />
</DocsLayout>